<h2>View Products</h2>
<fieldset>
<legend>View Products</legend>
<dl>
    <dt>Name</dt>
    <dd><?php echo $product['Product']['product_name']; ?>&nbsp;</dd>
    <dt>Category</dt>
    <dd><?php echo $product['Category']['name']; ?>&nbsp;</dd>
    <dt>Image</dt>
    <?php 
            if(is_null($product['Product']['image']) || $product['Product']['image']=="")
                {$product['Product']['image']="nemletezik.jpg";}
    ?>
    <dd><?php echo $html->image('product/'.$product['Product']['image']); ?></dd>
    <dt>Description</dt>
    <dd><?php echo nl2br($product['Product']['description']); ?>&nbsp;</dd>
</dl>
</fieldset>
<h3>Product's size</h3>
<fieldset>
<legend>Product's Size</legend>
    <table>
        <thead>
            <tr>
                <th>Value</th>
                <th>Price</th>
            </tr>
        </thead>
            <?php foreach($product['Size'] as $size):?>
            <tr>
                <td><?php print $size['value']?></td>
                <td><?php print $size['price']?> €</td>
            </tr>
            <?php endforeach;?>
        <tbody>
        </tbody>
    </table>
</fieldset>